<?php
define('SITE_WEB_DISK_DIR',dirname(__FILE__));
include('config.php'); 
include('config.enviroment.php'); 
include('lib/flatfile_utils.php');  
include('lib/flatfile.php');
include('include/AppMain.php');
include('include/class.sessionutil.php');
include('include/class.util.php');
include('include/class.recordshelper.php');
include('include/class.recordsview.php');

include('data_schema/AccountSchemaDef.php');

//login check
if(!defined('NO_NEED_LOGIN_CHECK') && strlen(SessionUtil::getVar(SESSION_KEY_LOGIN_NAME)) == 0)
{
	ob_clean();
	header('Location:login.php');
	exit();
}
//int account data
function global_load_account_info_to_request()
{
$db = AppMain::getDbDriver();
$tomp_list = $db->selectAll(DB_TABLE_NAME_ACCOUNT);
$_REQUEST['CACHE_ACCOUNT_TABLE'] = array();
foreach($tomp_list as $tmpData)
{
	$_REQUEST['CACHE_ACCOUNT_TABLE'][$tmpData[DBC_ACCOUNT_ID]] = $tmpData;
}
}
global_load_account_info_to_request();
?>